home *** CD-ROM | disk | FTP | other *** search
/ Aminet 51 / Aminet 51 (2002)(GTI - Schatztruhe)[!][Oct 2002].iso / Aminet / dev / c / nroot.lha / nroot.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-08-01  |  498 b   |  21 lines

  1. #ifndef _NROOT_H
  2. #define _NROOT_H
  3. extern double nroot(long int,double);
  4. #endif
  5.  
  6. /********************************************************************
  7.  
  8.   Extracts n-th root from x.
  9.  
  10.   result = nroot( n , x );
  11.  
  12.   double   result;
  13.   long int n;
  14.   double   x;
  15.  
  16. If n is less than 1 result is 0 and global integer errno contains value EDOM.
  17. If n is even and x is negative, result is 0 and global integer errno 
  18. contains value EDOM.
  19.  
  20. *********************************************************************/
  21.